from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
d=webdriver.Firefox()
d.get('file:///E:/%E8%93%AC%E8%8E%B1%E5%B0%8F%E8%AF%BE2024%E6%B5%8B%E8%AF%95/%E7%AC%AC%E5%9B%9B%E9%98%B6%E6%AE%B5/Selenium%E8%87%AA%E5%8A%A8%E5%8C%96/selenium_demo/day03demo/demo03.html')
hobby1=d.find_element_by_xpath('//input[@checked]')

hobby2=d.find_element(By.XPATH,'//input[2]')
hobby3=d.find_element(By.XPATH,'//input[@name="reading"]')
hobby4=d.find_element(By.XPATH,'//input[3]')
hobby1.click()
hobby2.click()
hobby3.click()
hobby4.click()
d.quit()